.contributorsSection {
  width: 100%;
  margin: 0 auto;
}

.title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 3rem;
  /* Dark theme */
  color: #ffffff;
  margin: 0 0 1rem 0;
  text-align: center;
}

:global([data-theme='light']) .title {
  color: #2C2C2C;
}

.subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  /* Dark theme */
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0 0 3rem 0;
}

:global([data-theme='light']) .subtitle {
  color: rgba(44, 44, 44, 0.7);
}

.contributorsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.contributorCard {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1.5rem 2rem;
  /* Dark theme */
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  gap: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

:global([data-theme='light']) .contributorCard {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contributorCard:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

:global([data-theme='light']) .contributorCard:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.contributorInfo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.username {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  /* Dark theme */
  color: #ffffff;
  margin-bottom: 0.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

:global([data-theme='light']) .username {
  color: #2C2C2C;
}

.contributions {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  /* Dark theme */
  color: rgba(255, 255, 255, 0.6);
}

:global([data-theme='light']) .contributions {
  color: rgba(44, 44, 44, 0.6);
}

.contributeText {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  /* Dark theme */
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 2rem 0 0 0;
}

:global([data-theme='light']) .contributeText {
  color: rgba(44, 44, 44, 0.7);
}

.contributeLink {
  color: #66B5B7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contributeLink:hover {
  color: #7fc5c7;
  text-decoration: underline;
}

.seeAllContainer {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.seeAllButton {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  /* Dark theme */
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

:global([data-theme='light']) .seeAllButton {
  color: rgba(44, 44, 44, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(0, 0, 0, 0.03);
}

.seeAllButton:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

:global([data-theme='light']) .seeAllButton:hover {
  color: rgba(44, 44, 44, 0.9);
  border-color: rgba(0, 0, 0, 0.2);
  background-color: rgba(0, 0, 0, 0.05);
}

.loading,
.error {
  text-align: center;
  font-family: 'Inter', sans-serif;
  /* Dark theme */
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem;
}

:global([data-theme='light']) .loading,
:global([data-theme='light']) .error {
  color: rgba(44, 44, 44, 0.7);
}

.error a {
  /* Dark theme */
  color: #ffffff;
  text-decoration: underline;
}

:global([data-theme='light']) .error a {
  color: #2C2C2C;
}

.error a:hover {
  color: rgba(255, 255, 255, 0.8);
}

:global([data-theme='light']) .error a:hover {
  color: rgba(44, 44, 44, 0.8);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
  }

  .contributorsGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .contributorCard {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    aspect-ratio: 1;
    gap: 0.5rem;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .contributorInfo {
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    flex: 1;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
  }

  .username {
    font-size: 0.8125rem;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.125rem;
  }

  .contributions {
    display: block;
    font-size: 0.6875rem;
    text-align: center;
    margin-top: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    line-height: 1.2;
  }
}

/* Very small screens - show only avatars */
@media (max-width: 480px) {
  .contributorCard {
    padding: 0.5rem;
    gap: 0;
  }

  .avatar {
    width: 56px;
    height: 56px;
  }

  .contributorInfo {
    display: none;
  }
}

/* Tablet Responsive Styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .contributorsGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .contributorCard {
    padding: 1.25rem 1.5rem;
  }

  .avatar {
    width: 64px;
    height: 64px;
  }

  .username {
    font-size: 1rem;
  }

  .contributions {
    font-size: 0.875rem;
  }
}

